import sysPage from './page/sys-page'
import sysLayout from './page/sys-layout'
import sysCtrl from './sys-ctrl'
import simpleDialog from './dialog/simple-dialog'
import simpleDialog2 from './dialog/simple-dialog2'
import sysDialog from './dialog/sys-dialog'
import editorLayout from './page/editor-layout'
import reportStatus from './report/report-status'
import reportSelect from './report/report-select'

const components = {
  sysPage,
  sysLayout,
  sysCtrl,
  simpleDialog,
  simpleDialog2,
  sysDialog,
  editorLayout,
  reportStatus,
  reportSelect
}

const install = (Vue) => {
  Object.keys(components).forEach(key => {
    Vue.component(key, components[key])
  })
}

export default install
